package it.univpm.diiga.semanticsearch.gestione;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class XMLFileFilter extends FileFilter {

    public XMLFileFilter() {
            super();
    }

    public boolean accept(File file) {
            if (file.isDirectory()) {
                    return true;
            }
            return file.getName().endsWith(".xml");
    }

    public String getDescription() {
            return "XML Repository (*.xml)";
    }
}